import mockjs from 'mockjs'
import { MockMethod } from 'vite-plugin-mock'
const ajaxHeadersTokenKey = 'x-token'
export default [
  {
    url: '/api/checkList',
    method: 'get',
    response: ({ body }) => {
      return {
        code: 200,
        data: [
          {
            id: 1,
            title: '护士数量配置相关数据', // 标题
            list: [
              {
                id: 1,
                title: '本季度实际开放床位数',
                total: 860,
              },
              {
                id: 2,
                title: '季初全员执业护士总人数',
                total: 500,
              },
              {
                id: 3,
                title: '季末全员执业护士总人数',
                total: 507,
              },
              {
                id: 4,
                title: '季初住院病区执业护士总人数',
                total: 362,
              },
              {
                id: 5,
                title: '季末住院病区执业护士总人数',
                total: 94,
              },
              {
                id: 6,
                title: '季尾住院病区执业护士总人数',
                total: 164,
              },
              {
                id: 7,
                title: '巅峰住院病区执业护士总人数',
                total: 264,
              },
              {
                id: 8,
                title: '眼科住院病区执业护士总人数',
                total: 314,
              },
              {
                id: 9,
                title: '呼吸科住院病区执业护士总人数',
                total: 368,
              },
            ],
          },
          {
            id: 2,
            title: '病人数量配置相关数据', // 标题
            list: [
              {
                id: 1,
                title: '本季度实际开放床位数',
                total: 860,
              },
              {
                id: 2,
                title: '季初全员执业护士总人数',
                total: 500,
              },
              {
                id: 3,
                title: '季末全员执业护士总人数',
                total: 507,
              },
              {
                id: 4,
                title: '季初住院病区执业护士总人数',
                total: 362,
              },
              {
                id: 5,
                title: '季末住院病区执业护士总人数',
                total: 364,
              },
              {
                id: 6,
                title: '季尾住院病区执业护士总人数',
                total: 164,
              },
              {
                id: 7,
                title: '巅峰住院病区执业护士总人数',
                total: 264,
              },
              {
                id: 8,
                title: '眼科住院病区执业护士总人数',
                total: 314,
              },
              {
                id: 9,
                title: '呼吸科住院病区执业护士总人数',
                total: 368,
              },
            ],
          },
        ],
      }
    },
  },
  {
    url: '/api/eventList',
    method: 'get',
    response: ({ body }) => {
      return {
        code: 200,
        data: [
          {
            id: 1,
            title: '跌倒（坠床）相关信息收集表（3）', // 标题
            list: [
              {
                id: 1,
                title: '内科/心血管内科/心血管内科',
                total: 523364,
                date: '2023-03-31',
                sex: '男',
                age: '65岁及以上',
                status: 1,
              },
              {
                id: 2,
                title: '季初全员执业护士总人数',
                total: 500,
                date: '2023-03-31',
                sex: '男',
                age: '65岁及以上',
                status: 1,
              },
              {
                id: 3,
                title: '季末全员执业护士总人数',
                total: 507,
                date: '2023-03-31',
                sex: '男',
                age: '65岁及以上',
                status: 1,
              },
            ],
          },
          {
            id: 2,
            title: '呼吸机相关肺炎（VAP）相关信息收集表（6）', // 标题
            list: [
              {
                id: 1,
                title: '内科/心血管内科/心血管内科',
                total: 523364,
                date: '2023-03-31',
                sex: '男',
                age: '65岁及以上',
                status: 1,
              },
              {
                id: 2,
                title: '季初全员执业护士总人数',
                total: 500,
                date: '2023-03-31',
                sex: '男',
                age: '65岁及以上',
                status: 1,
              },
              {
                id: 3,
                title: '季末全员执业护士总人数',
                total: 507,
                date: '2023-03-31',
                sex: '男',
                age: '65岁及以上',
                status: 1,
              },
            ],
          },
        ],
      }
    },
  },
  {
    url: '/api/indicatorsList',
    method: 'get',
    response: ({ body }) => {
      return {
        code: 200,
        data: [
          {
            id: 1,
            indicators: '每日住院患者24小时平均护理时数',
            affter: 11399,
            before: 1224,
          },
          {
            id: 2,
            indicators: '每日住院患者24小时平均护理时数',
            affter: 11399,
            before: 1224,
          },
          {
            id: 3,
            indicators: '每日住院患者24小时平均护理时数',
            affter: 11399,
            before: 1224,
          },
          {
            id: 4,
            indicators: '每日住院患者24小时平均护理时数',
            affter: 11399,
            before: 1224,
          },
        ],
      }
    },
  },
] as MockMethod[]
